package com.richapp.launcher.database.update.mode;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * Created by jack on 16/2/25.
 */
@DatabaseTable(tableName = "update")
public class Update {

    @DatabaseField(generatedId = true)
    private int updateId;

    @DatabaseField(columnName = "showFlag",canBeNull = true,defaultValue = "true")
    private boolean showFlag = true;

    @DatabaseField(columnName = "updateContent")
    private String updateContent = "未获取到更新内容!";

    @DatabaseField(columnName = "version",canBeNull = true,unique = true)
    private String version = "";

    @DatabaseField(columnName = "updateTime",canBeNull = true)
    private long updateTime;


    public Update(){

    }

    public boolean isShowFlag() {
        return showFlag;
    }

    public void setShowFlag(boolean showFlag) {
        this.showFlag = showFlag;
    }

    public String getUpdateContent() {
        return updateContent;
    }

    public void setUpdateContent(String updateContent) {
        this.updateContent = updateContent;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    public int getUpdateId() {
        return updateId;
    }

    public void setUpdateId(int updateId) {
        this.updateId = updateId;
    }
}
